import Request from '@/utils/request';
import Config from '@/config';

//获取学员我的培训班列表
export function getStudentTrainClassPageList(data) {
  return Request({
    url: Config.getStudentTrainClassPageList,
    method: 'post',
    data
  });
}



//报名
export function applyTrainClass(data) {
  return Request({
    url: Config.applyTrainClass,
    method: 'post',
    data
  });
}


//获取培训班信息
export function getTrainClassInfo(data) {
  return Request({
    url: Config.getTrainClassInfo,
    method: 'post',
    data
  });
}




//进入培训
export function getEntryTrainClassInfo(data) {
  return Request({
    url: Config.getEntryTrainClassInfo,
    method: 'post',
    data
  });
}

//进入培训-获取课件列表
export function getCourseWareList(data) {
  return Request({
    url: Config.getCourseWareList,
    method: 'post',
    data
  });
}

//保存课件学习记录
export function saveCourseWareRecord(data) {
  return Request({
    url: Config.saveCourseWareRecord,
    method: 'post',
    data
  });
}

//获取组卷策略
export function getExamPolicy(data) {
  return Request({
    url: Config.getExamPolicy,
    method: 'post',
    data
  });
}

//获取考试试卷
export function getExam(data) {
  return Request({
    url: Config.getExam,
    method: 'post',
    data
  });
}

//提交试卷
export function submitExam(data) {
  return Request({
    url: Config.submitExam,
    method: 'post',
    data
  });
}

//是否可以开始考试
export function isCanExam(data) {
  return Request({
    url: Config.isCanExam,
    method: 'post',
    data
  });
}

//获取学员考试记录
export function getStudentExamRecordPageList(data) {
  return Request({
    url: Config.getStudentExamRecordPageList,
    method: 'post',
    data
  });
}

//获取学员答题记录
export function getStudentExamAnswerRecord(data) {
  return Request({
    url: Config.getStudentExamAnswerRecord,
    method: 'post',
    data
  });
}

//获取课程题库
export function getCourseQuestionList(data) {
  return Request({
    url: Config.getCourseQuestionList,
    method: 'post',
    data
  });
}
